package com.shatower.chatctrl.dao.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecordidIsNull() {
            addCriterion("recordId is null");
            return (Criteria) this;
        }

        public Criteria andRecordidIsNotNull() {
            addCriterion("recordId is not null");
            return (Criteria) this;
        }

        public Criteria andRecordidEqualTo(Long value) {
            addCriterion("recordId =", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotEqualTo(Long value) {
            addCriterion("recordId <>", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThan(Long value) {
            addCriterion("recordId >", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThanOrEqualTo(Long value) {
            addCriterion("recordId >=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThan(Long value) {
            addCriterion("recordId <", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThanOrEqualTo(Long value) {
            addCriterion("recordId <=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidIn(List<Long> values) {
            addCriterion("recordId in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotIn(List<Long> values) {
            addCriterion("recordId not in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidBetween(Long value1, Long value2) {
            addCriterion("recordId between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotBetween(Long value1, Long value2) {
            addCriterion("recordId not between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidIsNull() {
            addCriterion("groupWeixinId is null");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidIsNotNull() {
            addCriterion("groupWeixinId is not null");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidEqualTo(String value) {
            addCriterion("groupWeixinId =", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidNotEqualTo(String value) {
            addCriterion("groupWeixinId <>", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidGreaterThan(String value) {
            addCriterion("groupWeixinId >", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidGreaterThanOrEqualTo(String value) {
            addCriterion("groupWeixinId >=", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidLessThan(String value) {
            addCriterion("groupWeixinId <", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidLessThanOrEqualTo(String value) {
            addCriterion("groupWeixinId <=", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidLike(String value) {
            addCriterion("groupWeixinId like", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidNotLike(String value) {
            addCriterion("groupWeixinId not like", value, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidIn(List<String> values) {
            addCriterion("groupWeixinId in", values, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidNotIn(List<String> values) {
            addCriterion("groupWeixinId not in", values, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidBetween(String value1, String value2) {
            addCriterion("groupWeixinId between", value1, value2, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andGroupweixinidNotBetween(String value1, String value2) {
            addCriterion("groupWeixinId not between", value1, value2, "groupweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidIsNull() {
            addCriterion("userWeixinId is null");
            return (Criteria) this;
        }

        public Criteria andUserweixinidIsNotNull() {
            addCriterion("userWeixinId is not null");
            return (Criteria) this;
        }

        public Criteria andUserweixinidEqualTo(String value) {
            addCriterion("userWeixinId =", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidNotEqualTo(String value) {
            addCriterion("userWeixinId <>", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidGreaterThan(String value) {
            addCriterion("userWeixinId >", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidGreaterThanOrEqualTo(String value) {
            addCriterion("userWeixinId >=", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidLessThan(String value) {
            addCriterion("userWeixinId <", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidLessThanOrEqualTo(String value) {
            addCriterion("userWeixinId <=", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidLike(String value) {
            addCriterion("userWeixinId like", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidNotLike(String value) {
            addCriterion("userWeixinId not like", value, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidIn(List<String> values) {
            addCriterion("userWeixinId in", values, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidNotIn(List<String> values) {
            addCriterion("userWeixinId not in", values, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidBetween(String value1, String value2) {
            addCriterion("userWeixinId between", value1, value2, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andUserweixinidNotBetween(String value1, String value2) {
            addCriterion("userWeixinId not between", value1, value2, "userweixinid");
            return (Criteria) this;
        }

        public Criteria andRecordtypeIsNull() {
            addCriterion("recordType is null");
            return (Criteria) this;
        }

        public Criteria andRecordtypeIsNotNull() {
            addCriterion("recordType is not null");
            return (Criteria) this;
        }

        public Criteria andRecordtypeEqualTo(Short value) {
            addCriterion("recordType =", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeNotEqualTo(Short value) {
            addCriterion("recordType <>", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeGreaterThan(Short value) {
            addCriterion("recordType >", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeGreaterThanOrEqualTo(Short value) {
            addCriterion("recordType >=", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeLessThan(Short value) {
            addCriterion("recordType <", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeLessThanOrEqualTo(Short value) {
            addCriterion("recordType <=", value, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeIn(List<Short> values) {
            addCriterion("recordType in", values, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeNotIn(List<Short> values) {
            addCriterion("recordType not in", values, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeBetween(Short value1, Short value2) {
            addCriterion("recordType between", value1, value2, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordtypeNotBetween(Short value1, Short value2) {
            addCriterion("recordType not between", value1, value2, "recordtype");
            return (Criteria) this;
        }

        public Criteria andRecordcontentIsNull() {
            addCriterion("recordContent is null");
            return (Criteria) this;
        }

        public Criteria andRecordcontentIsNotNull() {
            addCriterion("recordContent is not null");
            return (Criteria) this;
        }

        public Criteria andRecordcontentEqualTo(String value) {
            addCriterion("recordContent =", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentNotEqualTo(String value) {
            addCriterion("recordContent <>", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentGreaterThan(String value) {
            addCriterion("recordContent >", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentGreaterThanOrEqualTo(String value) {
            addCriterion("recordContent >=", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentLessThan(String value) {
            addCriterion("recordContent <", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentLessThanOrEqualTo(String value) {
            addCriterion("recordContent <=", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentLike(String value) {
            addCriterion("recordContent like", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentNotLike(String value) {
            addCriterion("recordContent not like", value, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentIn(List<String> values) {
            addCriterion("recordContent in", values, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentNotIn(List<String> values) {
            addCriterion("recordContent not in", values, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentBetween(String value1, String value2) {
            addCriterion("recordContent between", value1, value2, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andRecordcontentNotBetween(String value1, String value2) {
            addCriterion("recordContent not between", value1, value2, "recordcontent");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}